﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 约苗秒杀.Models
{
    /**
     * Created on 2020-07-22.
     * 疫苗信息
     * @author wangxiaodong
     */
    public class VaccineDetail
    {

        /**
         * 预约日期列表
         */
        private List<Day> days;

        /**
         * 时间戳，解密会用到
         */
        private long time;

        /**
         * 开始抢购时间
         */
        private long startMilliscond;

        /**
         * 医院地址
         */
        private string hospitalName;



        public List<Day> getDays()
        {
            return days;
        }

        public void setDays(List<Day> days)
        {
            this.days = days;
        }

        public long getTime()
        {
            return time;
        }

        public void setTime(long time)
        {
            this.time = time;
        }

        public string getHospitalName()
        {
            return hospitalName;
        }

        public void setHospitalName(string hospitalName)
        {
            this.hospitalName = hospitalName;
        }

        public long getStartMilliscond()
        {
            return startMilliscond;
        }

        public void setStartMilliscond(long startMilliscond)
        {
            this.startMilliscond = startMilliscond;
        }
    }

    public  class Day
    {
        /**
         * 预约日期
         */
        private string day;
        /**
         * 预约日期剩余数量
         */
        private int total;

        public string getDay()
        {
            return day;
        }

        public void setDay(string day)
        {
            this.day = day;
        }

        public int getTotal()
        {
            return total;
        }

        public void setTotal(int total)
        {
            this.total = total;
        }
    }
}
